package com.jt.controller;


import com.jt.service.ItemDescService;
import com.jt.vo.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/item/query/item/")
public class ItemDescController {
    @Autowired
    ItemDescService itemDescService;

    @RequestMapping("desc/{itemId}")
    public JsonResult getItemDesc(@PathVariable Long itemId){
        return new JsonResult(itemDescService.getItemDesc(itemId));
    }
}
